package com.dongzili.easysearch.custom.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;
import org.dromara.easyes.annotation.IndexField;
import org.dromara.easyes.annotation.IndexId;
import org.dromara.easyes.annotation.IndexName;
import org.dromara.easyes.annotation.Settings;
import org.dromara.easyes.annotation.rely.Analyzer;
import org.dromara.easyes.annotation.rely.FieldType;
import org.dromara.easyes.annotation.rely.IdType;

import java.io.Serializable;

/**
 * 练习题
 * @TableName f_si_exercise
 */
@TableName(value ="f_si_exercise")
@Data
@Accessors(chain = true)
@Settings(maxResultWindow = 100000000)
@IndexName(value = "f_si_exercise")
public class SiExercise implements Serializable {
    /**
     *
     */
    @IndexId(type = IdType.CUSTOMIZE)
    @TableId(value = "id")
    private String id;

    /**
     *
     */
    @TableField(value = "sectionId")
    private String sectionId;

    /**
     *
     */
    @TableField(value = "treeIds")
    private String treeIds;

    /**
     *
     */
    @TableField(value = "parentId")
    private String parentId;

    /**
     *
     */
    @TableField(value = "lastId")
    private String lastId;

    /**
     *
     */
    @TableField(value = "subType")
    private Integer subType;

    /**
     *
     */
    @TableField(value = "stem")
    private String stem;

    /**
     *
     */
    @IndexField(fieldType = FieldType.TEXT, analyzer = Analyzer.IK_SMART)
    @TableField(value = "issue")
    private String issue;

    /**
     *
     */
    @TableField(value = "stemTail")
    private String stemTail;

    /**
     *
     */
    @TableField(value = "sOption")
    private String sOption;

    /**
     *
     */
    @TableField(value = "answer")
    private String answer;

    /**
     *
     */
    @TableField(exist = false)
    private String userAnswer;

    /**
     *
     */
    @IndexField(fieldType = FieldType.TEXT, analyzer = Analyzer.IK_SMART)
    @TableField(value = "analysis")
    private String analysis;

    /**
     *
     */
    @TableField(value = "number")
    private Integer number;

    /**
     *
     */
    @TableField(value = "`order`")
    private Long order;

    /**
     *
     */
    @TableField(value = "childre")
    private String childre;

}
